import ajax from '@/request/ajax.js'
import qs from 'qs'


const api = {
  skyAdd: '/admin/skyAdd',   //添加
  skySelect: '/admin/skySelect',   //查询
  skyDelete: '/admin/skyDelete',  //删除
  skyUpdate: '/admin/skyUpdate'  //编辑
}



// export const detail = data => ajax({
//   url: api.detail,
//   method: 'POST',
//   data: data
//   // headers: {
//   //   'Content-Type': 'application/x-www-form-urlencoded'
//   // },
//   // data: qs.stringify(data)
// })

export const skyAdd = data => ajax({
  url: api.skyAdd,
  method: 'POST',
  data: data
})

export const skySelect = data => ajax({
  url: api.skySelect,
  method: 'POST',
  data: data
})


export const skyDelete = data => ajax({
  url: api.skyDelete,
  method: 'POST',
  data: data
})

export const skyUpdate = data => ajax({
  url: api.skyUpdate,
  method: 'POST',
  data: data
})